<?php
function a393_copyLanguage($fromLang,$toLang) {
	global $REX;
	$qry = "SELECT `id` FROM `".$REX['TABLE_PREFIX']."article` WHERE `clang`=".$fromLang;
	$sql = new rex_sql;
	$articles = $sql->getArray($qry);
	foreach ($articles as $myArticle) {
		// function rex_copyContent($from_id, $to_id, $from_clang = 0, $to_clang = 0, $from_re_sliceid = 0)
		rex_copyContent($myArticle['id'],$myArticle['id'],$fromLang,$toLang);
	
	}

}
?>